package com.luoqiz.demo.threadDemo;

public class Consumer extends Thread {

	private Pool pool;

	Consumer(String name, Pool pool) {
		this.setName(name);
		this.pool = pool;
	}

	public void run() {
		while(true){
			pool.remove();
		}
	}
}
